class @MyMessageListingModel extends Backbone.Model
    defaults:
        UserId:''
        SenderId:''
        Messages:[]
        Size:10
        Page:1
        Direction:0
        Column:"Email"
        Filter:
            Email:''
            Login:''
    url:->
        url = SiteMap.Messages.MessageListing
        url = url + "?senderId=" + @attributes.SenderId
        url = url + "&page=" + @attributes.Page
        url = url + "&size=" + @attributes.Size
        return url
    parse:(response)->
        items={}
        items.UserId = response.UserId
        items.Size = response.Size
        items.Page = response.Page
        items.TotalPage = response.TotalPage
        items.Messages = response.Messages
        return items

